import request from '@/utils/request';

export default {
  validationCode(data) {
    return request({
      url: '/api/manager/validationCode',
      method: 'post',
      data
    })
  },
  register(data) {
    return request({
      url: '/api/manager/register',
      method: 'post',
      data
    })
  },
  resetPwd(data) {
    return request({
      url: '/api/manager/resetPwd',
      method: 'post',
      data
    })
  },
  login(data) {
    return request({
      url: '/api/manager/login',
      method: 'post',
      data
    })
  },
  updatePwdByOld(data) {
    return request({
      url: '/api/manager/updatePwdByOld',
      method: 'post',
      data
    })
  },
  getInfo() {
    return request({
      url: '/api/manager/loginInfo',
      method: 'POST'
    })
  },
  my() {
    return request({
      url: '/api/manager/my',
      method: 'POST'
    })
  },
  logout() {
    return request({
      url: '/api/manager/logout',
      method: 'POST'
    })
  },
  list(data) {
    return request({
      url: '/api/manager/list',
      method: 'POST',
      data
    })
  },
  modify(data) {
    return request({
      url: '/api/manager/edit',
      method: 'POST',
      data
    })
  },
  enable(data) {
    return request({
      url: '/api/manager/enable',
      method: 'POST',
      data
    })
  },
  detail(data) {
    return request({
      url: '/api/manager/detail',
      method: 'POST',
      data
    })
  },
  del(data) {
    return request({
      url: '/api/manager/del',
      method: 'POST',
      data
    })
  },
  renewal(data) {
    return request({
      url: '/api/manager/renewal',
      method: 'POST',
      data
    })
  }
}
